/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kn.cstf2.global.Utils;

import java.sql.*;
import kn.cstf2.global.Utils.ConectaProperties;
import kn.cstf2.global.Utils.CstF2Exception;
import org.apache.log4j.Logger;
import java.util.ResourceBundle;
import kn.cstf2.global.db.props.Propiedades;
import java.util.Properties;

import java.sql.*;
import java.util.Properties;
import kn.cstf2.global.db.props.Propiedades;
import org.apache.log4j.Logger;


public class FtpOperations {

    private String host;
    private String usuario;
    private String password;
    private String folder;
    private String folderDone;
    private String folderErr;
    private Integer port;

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
    
    private String nombrePro;

    public String getNombrePro() {
        return nombrePro;
    }

    public void setNombrePro(String nombrePro) {
        this.nombrePro = nombrePro;
    }

    public String getFolder() {
        return folder;
    }

    public void setFolder(String folder) {
        this.folder = folder;
    }

    public String getFolderDone() {
        return folderDone;
    }

    public void setFolderDone(String folderDone) {
        this.folderDone = folderDone;
    }

    public String getFolderErr() {
        return folderErr;
    }

    public void setFolderErr(String folderErr) {
        this.folderErr = folderErr;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsuario() {
        return usuario;
    }

    public void setUsuario(String usuario) {
        this.usuario = usuario;
    }
    
    private static Logger log = Logger.getLogger(kn.cstf2.global.Utils.FtpOperations.class);
    
    public void obtenerParametrosConexion(){
        
        ConectaProperties prop = new ConectaProperties();
        nombrePro= "/kn/cstf2/global/db/props/ftp.properties";
        Properties proper = Propiedades.obtenerPropiedades(nombrePro);
        
        host = proper.getProperty("host");
        port = Integer.parseInt(proper.getProperty("port"));
        usuario = proper.getProperty("Usuario");
        password = proper.getProperty("Password");
        folder = proper.getProperty("Folder");
        folderDone = proper.getProperty("FolderDone");
        folderErr = proper.getProperty("FolderErr");    
    }
    
     
    

}
